﻿namespace smp.QueryDb
{
    public interface IQueryPage
    {
        Query ForPageSize(int pageSize);
    }

    internal class QueryPage : IQueryPage
    {
        private readonly Query _query;

        internal QueryPage(Query query)
        {
            _query = query;
        }

        #region Implementation of IRawQueryPage

        public Query ForPageSize(int pageSize)
        {
            _query.Structure.SetPageSize(pageSize);
            return _query;
        }

        #endregion
    }
}
